Skip to main content

DeleteScalingGroup

Description

deletes a specified scaling group.

Request Method

POST

Request Path

/apsara/route/Ess/DeleteScalingGroup

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
ScalingGroupIdBODYstringYesNo sample value for this parameter.ID of the scaling group.
ForceDeleteBODYboolNoNo sample value for this parameter.If the scaling group has an ECS instance or is in progress, whether to forcibly delete the scaling group and remove and release the ECS instance. The default value is false, which means that the scaling group is not forcibly deleted.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
The specified scaling group does not exist under this user accountinvalidscalinggroupid.notfoundThe specified scaling group does not exist.404
The user has not fully authorized the Auto Scaling Open API interfaceforbidden.unauthorizedA required authorization for the specified action is not supplied.403
ECS instances are also in the specified scaling groupinstanceinuseYou cannot delete a scaling configuration or scaling group while there is an instance associated with it.400

Example

Successful Response example

{
"The specified scaling group does not exist under this user account":"The specified scaling group does not exist.",
"The user has not fully authorized the Auto Scaling Open API interface":"A required authorization for the specified action is not supplied.",
"ECS instances are also in the specified scaling group":"You cannot delete a scaling configuration or scaling group while there is an instance associated with it."
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}